/**
 * 电子名片-获取名片信息
 */
function apiGetCardInfo() {
  console.log("apiGetCardInfo");
  return new Promise((resolve, reject) => {
    const res = {
      code: 200,
      data: {
        id: "10100",
        name: "王小明",
        position: "经理",
        company: "河北中废通网络技术公司",
        address: "河北省石家庄市长安区乐汇城C座",
        phone: "13888888888",
        product: "废旧物资，再生塑料，二手设备",
        img_front:
          // "https://recycleimg.feijiu.net/zft/feijiu_admin/images/1747191848203-2144.png",
          "./images/card-bg-1.png",
        img_back:
          // "https://recycleimg.feijiu.net/zft/feijiu_admin/images/1747191848210-6394.png",
          "./images/card-bg-1.png",
        permission: 1, // 是否有权限 1-有权限 0-无权限
      },
    };
    setTimeout(() => {
      resolve(res);
    }, 500);
  });
}

/**
 * 电子名片-获取我的商友录
 */
function apiGetFriendList() {
  console.log("apiGetFriendList");
  return new Promise((resolve, reject) => {
    const res = {
      code: 200,
      data: [
        {
          id: "1042359",
          name: "张志明",
          position: "业务部总经理",
          company: "徐州佳成纸业",
          phone: "15688885555",
          link: "https://www.feijiu.net",
        },
        {
          id: "2263403",
          name: "郭经理",
          position: "",
          company: "哈尔滨云拓金属物资回收有限公司",
          phone: "13888888888",
          address: "河北省石家庄市长安区乐汇城C座",
          link: "https://www.feijiu.net",
        },
        {
          id: "2291628",
          name: "王小明",
          position: "经理",
          company: "河北中废通网络技术公司",
          phone: "13888888888",
          address: "河北省石家庄市长安区乐汇城C座",
          link: "https://www.feijiu.net",
        },
      ],
    };
    setTimeout(() => {
      resolve(res);
    });
  });
}

/**
 * 电子名片-获取行业商友
 */
function apiGetIndustryList() {
  console.log("apiGetIndustryList");
  return new Promise((resolve, reject) => {
    const res = {
      code: 200,
      data: [
        {
          id: 1,
          name: "王小明",
          position: "经理",
          company: "河北中废通网络技术公司",
          phone: "13888888888",
          address: "河北省石家庄市长安区乐汇城C座",
        },
        {
          id: 2,
          name: "王小明",
          position: "经理",
          company: "河北中废通网络技术公司",
          phone: "13888888888",
        },
        {
          id: 3,
          name: "王小明",
          position: "经理",
          company: "河北中废通网络技术公司",
          phone: "13888888888",
          address: "河北省石家庄市长安区乐汇城C座",
        },
      ],
    };
    setTimeout(() => {
      resolve(res);
    });
  });
}

/**
 * 电子名片-添加商友
 */
function apiAddFriend() {
  console.log("apiAddFriend");
  return new Promise((resolve, reject) => {
    const res = {
      code: 200,
    };
    setTimeout(() => {
      resolve(res);
    }, 500);
  });
}
